package com.jt.controller;

import com.jt.pojo.User;
import com.jt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author :Colin
 * @version 创建时间: 2021/7/23 9:49
 */
@RestController

public class UserController {
    @Autowired
    private UserService userService;
    @RequestMapping("getAll")
    public List<User> getAll(){
        return userService.getAll();
    }

}
